package com.ad.pet.app.account.adapter;

import android.support.annotation.Nullable;
import android.widget.ImageView;
import android.widget.TextView;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.ad.pet.R;
import com.ad.pet.models.remote.account.AccountItem;

import java.util.List;

/**
 * Created by SEELE on 2018/6/14.
 */

public class Account2Adapter extends BaseQuickAdapter<AccountItem, BaseViewHolder> {


    public Account2Adapter(@Nullable List<AccountItem> data) {
        super(R.layout.item_account_bottom, data);
    }

    @Override
    protected void convert(BaseViewHolder helper, AccountItem item) {
        ImageView ivLogo = helper.getView(R.id.iv_head);
        TextView tvTitlte = helper.getView(R.id.tv_title);

        ivLogo.setImageResource(item.getItemType());
        tvTitlte.setText(item.getTitle());


    }
}
